maintainer="Hugo Osvaldo Barrera <hugo@whynothugo.nl>"
pkgname=hunspell-es-ar
pkgver=2.7
pkgrel=0
pkgdesc="Spanish (Argentina) hunspell dictionaries"
url="https://github.com/sbosio/rla-es"
arch="noarch"
license="GPL-3.0-or-later AND LGPL3.0-or-later AND MPL-1.1"
source="es_AR-$pkgver.oxt::https://github.com/sbosio/rla-es/releases/download/v$pkgver/es_AR.oxt"
# No tests
options="!check"
subpackages="$pkgname-doc"

unpack() {
	msg "Unpacking sources..."
	mkdir -p "$builddir"
	cd "$builddir"
	for u in $source; do
		local s="$SRCDEST/$(filename_from_uri $u)"
		case "$s" in
		*.oxt) unzip $s ;;
		esac
	done
}

package() {
	install -Dm644 es_AR.dic es_AR.aff -t "$pkgdir"/usr/share/hunspell

	# docs
	install -Dm644 README.txt -t "$pkgdir"/usr/share/doc/$pkgname
}

sha512sums="
7fcd900c8486a27a9ccba7c9a090c6d41242e285fd8c12669fcdd0ff26640f406895050491b4e36e9e920943acee0990ac61a3396367a019f251e29cce92c739  es_AR-2.7.oxt
"
